module.exports = {
    // 选项
    publicPath: './',
    outputDir: 'dist',
    assetsDir: 'static',
    devServer: {
        proxy: {
            '/streetdance': {
                target: 'http://123.56.87.55:8888',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/streetdance': '/streetdance/api'
                }
            },
            '/static': {
                target: 'http://123.56.87.55:80',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/static': '/static'
                }
            }
        }
    },
    lintOnSave: false,

    chainWebpack: config => {
        config
            .plugin('html')
            .tap(args => {
                args[0].title= '高校大学生街舞文化宣传网'
                /*args[0].template = '/Users/username/proj/app/templates/index.html'*/
                return args
            })
    },
}
